package com.webserver.test;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;

public class URLDecoderDemo {
    public static void main(String[] args) throws UnsupportedEncodingException {
        String line = "/regUser?username=%E9%99%88%E5%BB%BA%E9%A3%9E&password=123&nickname=%E9%99%88&age=18";

        line = URLDecoder.decode(line, "UTF-8");
        System.out.println(line);
    }
}
